package com.zxc.controller.util;

public class InsUtil {

    public static int insNameToId(String name) {
        int insId = 0;
        switch (name) {
            case "信息科学技术学院":
                insId = 1001;
                break;
            case "医学院":
                insId = 1002;
                break;
            case "管理学院":
                insId = 1004;
                break;
            case "经济学院":
                insId = 1005;
                break;
        }
        return insId;
    }

    public static void main(String[] args) {
        int id = insNameToId("信息科学技术学院");
        System.out.println(id);
    }
}
